<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="head">
	</ui:define>

	<ui:define name="content">
		<h1>Manage #{tiersribmsgs['tiersrib.title']}s</h1>
		
		<h:form>	
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{tiersribmsgs['navigation.new']}" action="#{TiersRibComponent.newTiersRib()}"/>
			<p:dataTable id="dta" value="#{TiersRibComponent.listTiersRibs()}"  var="current" rows="15" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{TiersRibComponent.selectTiersRib(current.trbTiers, current.trbRib)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersRibComponent.editTiersRib(current.trbTiers, current.trbRib)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{TiersRibComponent.confirmDeleteTiersRib(current.trbTiers, current.trbRib)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbtiers.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbTiers}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbrib.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbRib}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbpays.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbPays}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbetablissement.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbEtablissement}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbguichet.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbGuichet}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdenomguichet.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbDenomGuichet}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbcompte.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbCompte}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbclerib.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbCleRib}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbguichetdom.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbGuichetDom}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdenomdom.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbDenomDom}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbtitulaire.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbTitulaire}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbribvalide.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbRibValide}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbiban.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbIban}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbbic.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbBic}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdatecreation.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbDateCreation}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{tiersribmsgs['tiersrib.trbdatemodification.title']}" />
					</f:facet>
							<h:outputText value="#{current.trbDateModification}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>
